package main

import (
	"github.com/gin-gonic/gin"
	"dgg/pkg/controller"
)

func main() {
	// Create a default gin router
	r := gin.Default()

	// API version group
	v1 := r.Group("/api/v1")
	{
		// Initialize and register health controller
		healthController := controller.NewHealthController()
		healthController.RegisterRoutes(v1.Group("/health"))

		// Initialize and register file system controller
		fsController := controller.NewFSController()
		fsController.RegisterRoutes(v1.Group("/fs"))
	}

	// Run the server on port 8080
	r.Run(":8080")
}
